﻿#if UNITY
using UnityEngine;
#endif

namespace NodeBasedSkillEditor.Model.Node.RT
{
    public class Node_Evaluator_RT : RT_Node
    {
        public RT_FlowPort In;

        public RT_FlowPort Out;

        public RT_SingleValuePort In_Value;

        public Node_Evaluator_RT(Node_Evaluator sourceData, RT_DAG parentDag) : base(sourceData, parentDag)
        {
            In = new RT_FlowPort(EPortIOType.Input, sourceData.In, this);
            Out = new RT_FlowPort(EPortIOType.Output, sourceData.Out, this);
            In_Value = new RT_SingleValuePort(EPortIOType.Input, sourceData.Value, this);
        }

#if UNITY
        public override (EDagExeState, RT_Node) ForewardExecute(DAG_Executor executor)
        {
            Debug.Log(In_Value.GetValue(executor));
            return TryForewardByPort(Out);
        }
#endif
    }
}
